package com.yunke.dto.notification;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.Map;

/**
 * 发送通知DTO
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@Schema(name = "YunkeSendNotificationDto", description = "发送通知请求DTO")
public class YunkeSendNotificationDto {

    @NotNull(message = "接收用户ID不能为空")
    @Schema(description = "接收用户ID")
    private Long userId;

    @Schema(description = "发送用户ID")
    private Long fromUserId;

    @NotNull(message = "通知类型不能为空")
    @Schema(description = "通知类型（1系统通知 2点赞通知 3评论通知 4关注通知 5私信通知 6活动通知 7订单通知）")
    private Integer notificationType;

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "通知内容")
    private String content;

    @Schema(description = "模板代码（使用模板时）")
    private String templateCode;

    @Schema(description = "模板参数（使用模板时）")
    private Map<String, Object> templateParams;

    @Schema(description = "关联对象类型（1动态 2评论 3订单 4活动）")
    private Integer relatedType;

    @Schema(description = "关联对象ID")
    private Long relatedId;

    @Schema(description = "扩展数据（JSON格式）")
    private String extData;

    @Schema(description = "通知图标")
    private String notifyIcon;

    @Schema(description = "跳转URL")
    private String jumpUrl;

    @Schema(description = "优先级（1低 2中 3高）")
    private Integer priority;

    @Schema(description = "通知渠道（1站内信 2短信 4邮件 8推送，可组合）")
    private Integer channels;

    @Schema(description = "过期时间")
    private Long expireTime;
} 